from django.db import models

class Actor(models.Model):
    name=models.CharField(max_length=32)

    class Meta:
        db_table='actor'


class Movies(models.Model):
    movies_name=models.CharField(max_length=25)
    add_time=models.DateTimeField(auto_now_add=True)
    actor=models.ManyToManyField(Actor)
    img=models.ImageField(upload_to='img')


    class Meta:
        db_table='movies'
